<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset= utf-8" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/easyvalidator/js/easy_validator.pack.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/easyvalidator/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ui.tab.js"></script>
<link href="__PUBLIC__/css/welcome.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/easyvalidator/css/validate.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function(){
//alert("hello");
	var tab1 = new $.fn.tab({
		tabList:"#tabinfo .ui-tab-container .ui-tab-list li",
		contentList:"#tabinfo .ui-tab-container .ui-tab-content",
		eventType:"click",
		showType:"fade"
	});
});
</script>
<style type="text/css">
.label{color:#333;font-size:12px;float:left;width:55px;background: ;padding:7px 0 0 0;}
 INPUT {
	BORDER-RIGHT: #dcdcdc 1px solid; BORDER-TOP: #dcdcdc 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; BORDER-LEFT: #dcdcdc 1px solid; LINE-HEIGHT: 20px; BORDER-BOTTOM: #dcdcdc 1px solid; FONT-FAMILY: "宋体"; HEIGHT: 18px
}
ul{list-style-type:none; width:800px; height:500px;}
ul li {width:300px; height:25px;margin:3px 2px;float:left;}
ul #li_last{width:750px;margin:3px 2px;float:left;}
ul #li_last textarea{HEIGHT: 120px;}
.submit{width:55px; margin-top:110px; margin-left:120px;text-align:center;height:20px;}
.reset{width:55px; margin-top:110px;text-align:center;height:20px;}
</style>
<title>添加员工</title>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="__PUBLIC__/images/welcome/mail_leftbg.gif"><img src="__PUBLIC__/images/welcome/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="__PUBLIC__/images/welcome/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
        <tr>
          <td height="31"><div class="titlebt">资料修改</div></td>
        </tr>
      </table></td>
    <td width="16" valign="top" background="__PUBLIC__/images/welcome/mail_rightbg.gif"><img src="__PUBLIC__/images/welcome/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
 <tr>
    <td valign="middle" background="__PUBLIC__/images/welcome/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"> <div id="welcomeContent">
      <div class="leftCol">
         <ul>
         	<form action="__URL__/userUpdate" id="form_x" name="form_x" method="post">
         	<li><div class="label">员工账号:</div><input type="text" name="staffid" reg="^[A-Za-z0-9]+$" tip="可以由数字或字母组成" value="{$userInfo['staffid']}" /></li>
            <li><div class="label">密码:</div><input type="text"  disabled="disabled" name="password" reg="" tip="密码由员工自行修改" value="密码由员工自行管理" /></li>
            <li><div class="label">姓名:</div><input type="text" name="username"  reg="^[\u4e00-\u9fa5]+$" tip="只允许中文字符" value="{$userInfo['staffName']}" /></li>
            <li><div class="label">性别:</div><input type="text" name="sex"  reg="^[\u4e00-\u9fa5]+$" tip="只允许中文字符" value="{$userInfo['sex']}" /></li>
            <li><div class="label">年龄:</div><input type="text" name="age" reg="^\d+$" tip="只允许数字" value="{$userInfo['age']}" /></li>
            <li><div class="label">部门:</div><input type="text" name="department" reg="^[\u4e00-\u9fa5]+$" tip="只允许中文" value="{$userInfo['department']}" /></li>
            <li><div class="label">职位:</div><input type="text" name="position" reg="^[\u4e00-\u9fa5]+$" tip="只允许中文" value="{$userInfo['position']}" /></li>
            <li><div class="label">薪水:</div><input type="text" name="salary" reg="^\d+$" tip="只允许数字" value="{$userInfo['salary']}" /></li>
            <li><div class="label">学历:</div><input type="text" name="education" reg="^[\u4e00-\u9fa5]+$" tip="只允许中文" value="{$userInfo['education']}" /></li>
            <li><div class="label">婚否:</div><input type="text" name="isMarry" reg="^[\u4e00-\u9fa5]+$" tip="只允许中文" value="{$userInfo['isMarry']}" /></li>
            <li><div class="label">出生日期:</div><input type="text" name="birthday" reg="^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$" tip="日期必填且格式为:2011-2-6" value="{$userInfo['birthday']}" /></li>
            <li><div class="label">邮箱:</div><input type="text" name="eMail" reg="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" tip="邮箱必填" value="{$userInfo['eMail']}" /></li>
            <li><div class="label">入职日期:</div><input type="text" name="entryTime" reg="^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$" tip="日期必填且格式为:2011-2-6" value="{$userInfo['entryTime']}" /></li>
            <li><div class="label">电话:</div><input type="text" name="phoneNo" reg="^\d+$" tip="只允许数字" value="{$userInfo['phoneNo']}" /></li>
            <li><div class="label">状态:</div>
                <select name="isLock" id="isLock" reg="[^.+$]" tip="状态必选">
      				<option <?php if($userInfo['isLock']==0) echo "selected='selected'";?> value="0">激活</option>
   					<option <?php if($userInfo['isLock']==1) echo "selected='selected'";?> value="1">锁定</option>
    			</select>
            </li>
            <li id="li_last"><div class="label">备注:</div><textarea name="remarks" cols="47" rows="3" reg="^.+$" tip="不能为空">{$userInfo['remarks']}</textarea></li>
            <input type="hidden" name="uid" value="{$userInfo['id']}" />
            <li><input class="submit" name="button" id="button" type="submit" value="提交" /></li>
            <li><input class="reset" type="reset" value="重置"/></li>
            </form>
         </ul>
    </div></td>
    <td background="__PUBLIC__/images/welcome/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="__PUBLIC__/images/welcome/mail_leftbg.gif"><img src="__PUBLIC__/images/welcome/buttom_left2.gif" width="17" height="17" /></td>
    <td background="__PUBLIC__/images/welcome/buttom_bgs.gif"><img src="__PUBLIC__/images/welcome/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="__PUBLIC__/images/welcome/mail_rightbg.gif"><img src="__PUBLIC__/images/welcome/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>
